Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 3 - Style Objects / Style Objects Reference
Functions / Manipulating Style Object Properties


GXGetStyleOwners

You can use the GXGetStyleOwners function to determine the number of references to a particular style.

long GXGetStyleOwners(gxStyle source); 
source
A reference to the style to find the owner count of.
function result
The owner count of the source style.
DESCRIPTION
The GXGetStyleOwners function returns as its function result the owner count of the style specified by the source parameter. The owner count is the current number of references to the style object.

ERRORS, WARNINGS, AND NOTICES
Errors 
style_is_nil 
SEE ALSO
Owner counts are discussed in the section "Copying, Comparing, and Cloning Style Objects" on page 3-8, and in the section "Manipulating a Style Object's Owner Count" beginning on page 3-11.

To increment the owner count of a style, use the GXCloneStyle function, described on page 3-20. To decrement the owner count of a style, use the GXDisposeStyle function, described on page 3-17.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996